import request from '@/config/axios'

/**
 * 老人资料-更新
 */
export const update = (data) => {
  return request.post({ url: '/elder/elder-info/update', data })
}

/**
 * 获取老人信息
 */
export const get = (id) => {
  return request.get({ url: '/elder/elder-info/get?id=' + id })
}

/**
 * 老人资料-查询
 */
export const query = (params) => {
  return request.get({ url: '/elder/elder-info/query', params })
}

/**
 * 老人资料-新建
 */
export const insert = (data) => {
  return request.post({ url: '/elder/elder-info/insert', data })
}
